import type { ColumnProps } from 'antd/es/table';
import type { ReactElement } from 'react';

export interface IColumn extends ColumnProps<any> {
  search?: boolean;
  hideInTable?: boolean;
  type?: string;
  valueEnum?: Object;
}

export interface IProps {
  title: string;
  getList: Function;
  colums: IColumn[];
  toolBar?: ReactElement[];
  isPaging?: boolean;
  optional?: boolean;
}

export interface IListData {
  data: any;
  total: number;
}
